
@(message: String,talks:Seq[(Long,String)])(implicit request: RequestHeader,messagesProvider: MessagesProvider,session:Session)
@import views.html.admin._
@import helper._
@main(message , scripts=scripts) {
<div class="layui-tab layui-tab-brief" lay-filter="accTabBrief" >
    @CSRF.formField
    <ul class="layui-tab-title">
        <li class="layui-this" lay-id="talks">会话管理</li>
        <li lay-id="messages">消息管理</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <div class="layui-row layui-col-space2">
                <form class="layui-form" action="">
                    <input type="text" name="op" value="list" hidden>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">群名</label>
                        <div class="layui-input-block ">
                            <input type="text" name="name" value='' class="layui-input" >
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">access</label>
                        <div class="layui-input-block ">
                            <input type="text" name="access" value='' class="layui-input" >
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-block ">
                            <input type="text" name="note" value='' class="layui-input" >
                        </div>
                    </div>

                    <div class="layui-col-md1">
                        <label class="layui-form-label">启用</label>
                        <div class="layui-input-block ">
                            <input type="checkbox" name="status" lay-skin="switch" >
                        </div>
                    </div>

                    <div class="layui-col-md2">
                        <div class="layui-input-block ">
                            <button class="layui-btn" lay-submit lay-filter="formrobottalk">搜索</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
            <table id="demoRobotTalk" lay-filter="testrobottalk"></table>
        </div>

        <div class="layui-tab-item">
            <div class="layui-row layui-col-space2">
                <form class="layui-form" action="">
                    <input type="text" name="op" value="list" hidden>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">会话</label>
                        <div class="layui-input-block">
                            <select name="p2" lay-verify="required">
                                <option value=0>全部</option>
                                @for(s<-talks){
                                <option value=@s._1>@s._2</option>
                                }
                            </select>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">标题</label>
                        <div class="layui-input-block">
                            <input type="text" name="p1" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">发送时间</label>
                        <div class="layui-input-block" >
                            <input type="text" name="sdate" class="layui-input" placeholder="yyyy-MM-dd HH:MM:SS ~ yyyy-MM-dd HH:MM:SS" id="sendtime" value="">

                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                            <select name="status" lay-verify="required">
                                <option value=-1>全部</option>
                                <option value=0>全部0</option>
                                <option value=1>全部1</option>
                                <option value=2>全部2</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-col-md2">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="formrobotmsg">提交</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
            <table id="demoRobotMsg" lay-filter="testrobotmsg"></table>
        </div>

    </div>
</div>

}
@scripts = {<script src='@routes.Assets.versioned("js/layui_robotmsg.js")' type="text/javascript"></script>}